package com.example.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class DemoController {

    @RequestMapping("/hi")
    @ResponseBody
    public Map hello(){
        Map a=new HashMap();
        a.put("msg","lizg");
        return a;
    }
}
